from django.urls import path, include

from app00.views import account, home, manage

urlpatterns = [
    # 注册功能路由
    path('register/', account.register, name='register'),
    path('sms/code/', account.send_sms, name='send_sms'),
    path('login/sms/', account.login_sms, name='login_sms'),
    path('login/', account.login, name='login'),
    path('image/code/', account.image_code, name='image_code'),
    path('index/', home.index, name='index'),
    path('logout/', account.logout, name='logout'),
    path('moduleB/', home.moduleB, name='moduleB'),
    # 出版社列表
    path('publisher_list/', account.publisher_list, name='publisher_list'),
    path('add_publisher/', account.add_publisher, name='add_publisher'),
    path('drop_publisher/', account.drop_publisher, name='drop_publisher'),
    path('edit_publisher/', account.edit_publisher, name='edit_publisher'),
    path('book_list/', account.book_list, name='book_list'),
    path('add_book/', account.add_book, name='add_book'),
    path('drop_book/', account.drop_book, name='drop_book'),
    path('edit_book/', account.edit_book, name='edit_book'),
    path('author_list/', account.author_list, name='author_list'),
    path('add_author/', account.add_author, name='add_author'),
    path('edit_author/', account.edit_author, name='edit_author'),
    path('drop_author/', account.drop_author, name='drop_author'),

]
